import React, { Component } from 'react';
import { InputNumber } from 'antd';

class StockInput extends Component {
    render() {
        return (
            <InputNumber
                min={this.props.min}
                max={this.props.max}
                onChange={this.props.onChange}
                style={this.props.style}
                value={this.props.setValue}
                disabled={this.props.disabled}
            />
        );
    }
}

export default StockInput;